package com.hurui.xiaoming.http;

import com.hurui.xiaoming.bean.Li_ContractResult;
import com.hurui.xiaoming.bean.Li_CreditorResult;
import com.hurui.xiaoming.bean.Li_Detail_Result;
import com.hurui.xiaoming.bean.Li_FinanceResult;
import com.hurui.xiaoming.bean.Li_GetAgent_Result;
import com.hurui.xiaoming.bean.Li_IndexUI_Result;
import com.hurui.xiaoming.bean.Li_IsUserFinish_Result;
import com.hurui.xiaoming.bean.Li_LoanApplication;
import com.hurui.xiaoming.bean.Li_Login_Result;
import com.hurui.xiaoming.bean.Li_MakeContractResult;
import com.hurui.xiaoming.bean.Li_MyList_Result;
import com.hurui.xiaoming.bean.Li_Personal_Result;
import com.hurui.xiaoming.bean.Li_ProgressRersult;
import com.hurui.xiaoming.bean.Li_Regist_Result;
import com.hurui.xiaoming.bean.Li_Sms_Result;
import com.hurui.xiaoming.bean.Li_SureSendMoney;
import com.hurui.xiaoming.bean.Li_UserMessageBack_Result;
import com.hurui.xiaoming.bean.Li_profit_Result;
import com.hurui.xiaoming.bean.ManagerBean;
import com.hurui.xiaoming.bean.ModifyInfo;

import java.util.Map;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.QueryMap;
import retrofit2.http.Url;

/**
 * Created by Administrator on 2017/7/10.
 */

public interface ApiSevice {

    @GET
    Call<Object> onHttpGetOption(@Url String url  , @QueryMap Map<String , String> params );

    //发送短信验证码
    @POST
    Call<Li_Sms_Result> onHttpPostGetSms(@Url String url , @Body Map<String, String> params );

    //用户登录
    @POST
    Call<Li_Login_Result> onHttpPostGetLogin(@Url String url , @Body Map<String, String> params );

    //用户注册
    @POST
    Call<Li_Regist_Result> onHttpPostGetRegist(@Url String url , @Body Map<String, String> params );

    //修改密码
    @POST
    Call<Li_Regist_Result> onHttpPostForgrtPass(@Url String url , @Body Map<String, String> params );

    //获取完善信息
    @POST
    Call<Li_IsUserFinish_Result> onHttpPostIsUserFinish(@Url String url , @Body Map<String, String> params );

    //首页数据
    @POST
    Call<Li_IndexUI_Result> onHttpPostIndex(@Url String url , @Body Map<String, String> params );

    //申请借款
    @POST
    Call<Li_LoanApplication> onHttpPostLoanApplication(@Url String url , @Body Map<String, String> params );

    //确认打款
    @POST
    Call<Li_SureSendMoney> onHttpPostSureMoney(@Url String url , @Body Map<String, String> params );

    //财务数据接口
    @POST
    Call<Li_FinanceResult> onHttpPostFinanceData(@Url String url , @Body Map<String, String> params );

    //催款数据接口
    @POST
    Call<Li_CreditorResult> onHttpPostCreditorData(@Url String url , @Body Map<String, String> params );

    //进度查询
    @POST
    Call<Li_ProgressRersult> onHttpPostGetProgress(@Url String url , @Body Map<String, String> params );

    //获取合同列表
    @POST
    Call<Li_ContractResult> onHttpPostGetContractList(@Url String url , @Body Map<String, String> params );

    //签合同合
    @POST
    Call<Li_MakeContractResult> onHttpPostMakeContract(@Url String url , @Body Map<String, String> params );

    @POST
    Call<Object> onHttpPostOption(@Url String url , @Body Map<String, String> params );
    //个人界面
    @POST("/index.php/home/Index/my_index")
    Call<Li_Personal_Result> onHttpPostPersonal(@Body Map<String,String> params);//@Url String url,
    //意见反馈
    @POST("/index.php/home/Index/do_feedback")
    Call<Li_UserMessageBack_Result> onHttpDo_feedback(@Body Map<String,String> params);
    //获取身份信息
    @POST("/index.php/home/Login/xiaoxi")
    Call<Li_IsUserFinish_Result> onHttp_UpdateInfo(@Body Map<String,String> params);
    //完善身份信息
    @POST("/index.php/home/Login/doxiaoxi")
    Call<Li_IsUserFinish_Result> onHttp_Info(@Body Map<String,Object> params);
    //完善身份信息
    @POST("/index.php/home/Login/doxiaoxi2")
    Call<Li_IsUserFinish_Result> onHttp_Info2(@Body Map<String,Object> params);
    //申请代理
    @POST("/index.php/home/Index/do_applying")
    Call<Li_GetAgent_Result> onHttp_applaying(@Body Map<String,String> params);

    //我的清单
    @POST("/index.php/home/Index/my_order")
    Call<Li_MyList_Result> onHTttp_myOrder(@Body Map<String,String> params);
    //收益信息
    @POST("/index.php/home/Index/profit")
    Call<Li_profit_Result> onHttp_profit(@Body Map<String,String> params);


    //详情页
    @POST("/index.php/home/Index/views")
    Call<Li_Detail_Result> onHTttp_views(@Body Map<String, String> params);
    //退出登录
    @POST("/index.php/home/Login/outLogin")
    Call<String> onHttp_outLogin();
    //修改个人信息
    @POST("/index.php/home/Index/updateUser")
    Call<ModifyInfo> onHttp_modify(@Body Map<String,Object> params);
    //还款详情
    @POST("/index.php/home/Index/repay")
    Call<ModifyInfo> onHttp_repay(@Body Map<String,String> params);
    //客户经理
    @POST("/index.php/home/Index/index")
    Call<ManagerBean> onHttp_manager(@Body  Map<String,Object> params);
}
